package com.netty.tcp.ew.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


import java.util.Date;

/**
 * 系统执行日志对象 control_command_log_system
 * 
 * @author Mr.wu
 * @date 2023-11-09
 */
public class ControlCommandLogSystem
{
    private static final long serialVersionUID = 1L;

    /** 指令ID */
    private Integer commandId;

    /** 指令类别 */
    private String commandType;

    /** 指令目标设备 */
    private String commandTargetdevice;

    /** 指令内容 */
    private String commandContent;

    /** 关键值 */
    private String commandKeyvalue;

    private Date createTime;

    private Integer companyId;

    public void setCommandId(Integer commandId) 
    {
        this.commandId = commandId;
    }

    public Integer getCommandId() 
    {
        return commandId;
    }
    public void setCommandType(String commandType) 
    {
        this.commandType = commandType;
    }

    public String getCommandType() 
    {
        return commandType;
    }
    public void setCommandTargetdevice(String commandTargetdevice) 
    {
        this.commandTargetdevice = commandTargetdevice;
    }

    public void setCommandKeyvalue(String commandKeyvalue){
        this.commandKeyvalue = commandKeyvalue;
    }

    private String getCommandKeyvalue(){
        return  commandKeyvalue;
    }

    public String getCommandTargetdevice() 
    {
        return commandTargetdevice;
    }
    public void setCommandContent(String commandContent) 
    {
        this.commandContent = commandContent;
    }

    public String getCommandContent() 
    {
        return commandContent;
    }

    private Date getCreateTime(){
        return createTime;
    }

    private void setCompanyId(Integer companyId){
        this.companyId = companyId;
    }
    private Integer getCompanyId(){
        return companyId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commandId", getCommandId())
            .append("commandType", getCommandType())
            .append("commandTargetdevice", getCommandTargetdevice())
            .append("commandContent", getCommandContent())
            .append("createTime", getCreateTime())
            .append("companyId", getCompanyId())
            .toString();
    }
}
